package com.liming.common.pojo.entity.stock;

import com.baomidou.mybatisplus.annotation.TableName;
import com.liming.common.pojo.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liming
 * @date 2025/1/21
 */
@Data
@TableName("se_stock")
@EqualsAndHashCode(callSuper = true)
public class Stock extends BaseEntity {

    /**
     * 商品ID
     */
    private Long productId;

    /**
     * 仓库ID
     */
    private Long warehouseId;

    /**
     * 可用库存
     */
    private Integer availableStock;

    /**
     * 锁定库存
     */
    private Integer lockedStock;

    /**
     * 总库存
     */
    private Integer totalStock;

    /**
     * 预警库存
     */
    private Integer alertStock;

    /**
     * 状态：0-禁用，1-启用
     */
    private Integer status;
}
